﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CqusInfo.RAL.User;

namespace CqusInfo.DAL.User.Interface
{
    public interface IUser_InfoToBasicDAL
    {
        /// <summary>
        /// 依据用户名得到用户信息
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <returns>List<User_InfoToBassicDAL></returns>
        List<User_InfoToBasicModel> Query_ByUserName(string userName);
        /// <summary>
        /// 添加用户基本信息
        /// </summary>
        /// <param name="model">数据集</param>
        /// <returns>1：成功 0：失败</returns>
        Int32 Add(string userName, User_InfoToBasicModel model);
        /// <summary>
        /// 修改用户基本信息
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <param name="model">model</param>
        /// <returns>1：成功 0：失败</returns>
        Int32 Update(string userName, User_InfoToBasicModel model);
        /// <summary>
        /// 彻底删除用户此条信息
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <returns>1：成功 0：失败</returns>
        Int32 Delete(string userName);
    }
}
